/**
 * Created by Administrator on 2016/6/23.
 */
"use strict";
const CryptoJS = require("crypto-js");
const merge = require("lodash/merge");
const assign = require("lodash/assign");
const omit = require("lodash/omit");
const sha1 = require("sha1");


const constants = {
    version: {
    },
    err: {
        hideErrorDetail: false
    },
    pmMessage: {
        sendMessage: (message, channel) => {
            console.log(`发送消息${message}到channel${channel}`);
            return Promise.resolve();
        },
        initMessagePrefix: () => {
        },
        CHANNELS: {}
    },
    rentServer: {
        protocol: "http://",
        url: "localhost",
        port: 3002,
        routerPrefix: "/api/1.0"
    },
    password: sha1("filename"),
    server: {
        port: 3001,
        url: "http://10.214.147.157",
        protocol: "http://",
        name: "si后台"
    },
    router: {
        apiPrefix: "api",
        schemaPrefix: "schema",
        version: "1.0"
    },
    result: {
        success: {
            success: true
        }
    },
    token: {
        lifecycle: 30 * 24 * 3600 * 1000,
        accessToken: "waitToInitialize",
        needExtensionInterval: 7 * 24 * 3600 * 1000
    },

    cos: {
        default: "default",
        lifeCycle: 30 * 60 * 1000
    },
}

module.exports = constants;
